package gr.handmademarket.po.interfaces;

import java.io.Serializable;

import gr.handmademarket.po.enums.Role;

/**
 * common interface for buyers and sellers.
 */
public interface User 
extends Serializable{
	
	/**
	 * returns the username.
	 * @return username.
	 */
	String getUsername();
	
	/**
	 * sets the username
	 * @param username
	 */
	void setUsername(String username);
	
	/**
	 * returns the password.
	 * @return password.
	 */
	String getPassword();
	
	/**
	 * sets the password.
	 * @param password
	 */
	void setPassword(String password);
	
	/**
	 * returns first name.
	 * @return first name.
	 */
	String getFirstName();
	
	/**
	 * sets the first name.
	 * @param firstName
	 */
	void setFirstName(String firstName);
	
	/**
	 * returns the last name.
	 * @return last name
	 */
	String getLastName();
	
	/**
	 * sets the last name
	 * @param lastName
	 */
	void setLastName(String lastName);
	
	/**
	 * returns user role.
	 * @return user role.
	 */
	Role getRole();
	
}
